package com.hwl;

import com.hwl.dao.UserMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Test;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.io.IOException;
import java.io.InputStream;

@Controller
public class HelloController {

    @RequestMapping("/hwl")
    public ModelAndView Hello(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("hwl","黄文龙好帅！");
        modelAndView.setViewName("/WEB-INF/hello.jsp");
        return modelAndView;
    }

}
